#!/usr/bin/env perl

@filters=('[NOISE]','[LAUGHTER]','[VOCALIZED-NOISE]','<UNK>','%HESITATION');

foreach $w (@filters) {
  $bad{$w} = 1;
}

while(<STDIN>) {
  @A  = split(" ", $_);
  $id = shift @A;
  print "$id ";
  foreach $a (@A) {
    if (!defined $bad{$a}) {
      print "$a ";
    }
  }
  print "\n";
}
